package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 快递代拿对象 courier_service
 * 
 * @author ruoyi
 * @date 2021-06-16
 */
public class CourierService extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long couId;

    /** 收货地址 */
    @Excel(name = "收货地址")
    private String receiptAddress;

    /** 取件凭证 */
    @Excel(name = "取件凭证")
    private String pickSecret;

    /** 上门时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上门时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date receiptTime;

    /** 是否加急 */
    @Excel(name = "是否加急")
    private Integer expedited;

    /** 0快递代取 */
    @Excel(name = "0快递代取")
    private Integer type;

    /** 用户外键 */
    @Excel(name = "用户外键")
    private Long couPubUser;

    /** 用户姓名 */
    @Excel(name = "用户外键")
    private String userName;

    private List<Commodity> commodityList;

    public void setCouId(Long couId) 
    {
        this.couId = couId;
    }

    public Long getCouId() 
    {
        return couId;
    }
    public void setReceiptAddress(String receiptAddress) 
    {
        this.receiptAddress = receiptAddress;
    }

    public String getReceiptAddress() 
    {
        return receiptAddress;
    }
    public void setPickSecret(String pickSecret) 
    {
        this.pickSecret = pickSecret;
    }

    public String getPickSecret() 
    {
        return pickSecret;
    }
    public void setReceiptTime(Date receiptTime) 
    {
        this.receiptTime = receiptTime;
    }

    public Date getReceiptTime() 
    {
        return receiptTime;
    }
    public void setExpedited(Integer expedited) 
    {
        this.expedited = expedited;
    }

    public Integer getExpedited() 
    {
        return expedited;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public List<Commodity> getCommodityList() {
        return commodityList;
    }

    public void setCommodityList(List<Commodity> commodityList) {
        this.commodityList = commodityList;
    }

    public Long getCouPubUser() {
        return couPubUser;
    }

    public void setCouPubUser(Long couPubUser) {
        this.couPubUser = couPubUser;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "CourierService{" +
                "couId=" + couId +
                ", receiptAddress='" + receiptAddress + '\'' +
                ", pickSecret='" + pickSecret + '\'' +
                ", receiptTime=" + receiptTime +
                ", expedited=" + expedited +
                ", type=" + type +
                ", couPubUser=" + couPubUser +
                ", userName=" + userName +
                ", commodityList=" + commodityList +
                '}';
    }
}
